<template>
    <div class="main-container">
        <div style="background-color: #fff; height:100%" id="customProp">
            <a-tabs   :lazy-load="true" type="card" @change="tabsChange" justify>
                <a-tab-pane key="1" title="染色配方扫描查询列表">
                    <div style="height: 100%;">
                        <DyeingFormulaScanningQuery></DyeingFormulaScanningQuery>
                    </div>
                </a-tab-pane>
                <a-tab-pane key="2" title="染色配方产量扫描">
                    <div style="height: 100%;">
                        <DyeingFormulaScanningDemo></DyeingFormulaScanningDemo>
                    </div>
                </a-tab-pane>
            </a-tabs>
        </div>
    </div>
</template>

<script lang="ts">
import { defineComponent, reactive, ref, onMounted } from 'vue'
import emitter from '@/hooks/useEventBus'
import DyeingFormulaScanningQuery from './components/DyeingFormulaScanningQuery.vue'
import DyeingFormulaScanningDemo from './components/DyeingFormulaScanningDemo.vue'


export default defineComponent({
    name: 'DyeingFormulaScanning',
    components: {
        DyeingFormulaScanningQuery, DyeingFormulaScanningDemo
    },
    setup() {

        const pageData = reactive({
            tableIndex: "1"
        })

        const tabsChange = (e: string | number) => {
            emitter.emit('window-change')

        }
        return {
            pageData,
            tabsChange
        }
    }
})
</script>

<style scoped>
.main-container {
    height: 100%;
}

:deep(.ag-cell) {
    border-right: 1px solid #dde2eb;
}

:deep(.ag-header-cell) {
    border-right: 1px solid #dde2eb;
}

:deep(.arco-table-th) {
    border-right: 1px solid var(--color-neutral-3);
}

:deep(.arco-table-td) {
    border-right: 1px solid var(--color-neutral-3);
}
</style>